<div>
    <div class="row">
        <div class="col-lg-8">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>库存信息</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_goBack()">
                            返回
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">商品名称</th>
                                <th class="text-center">条形码</th>
                                <th class="text-center">入库时间</th>
                                <th class="text-center">状态</th>
                                <th class="text-center">入库人</th>
                                <th class="text-right">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="stock in productStockManageInfo.productStocks">
                                <td class="text-center">{{stock.prodName}}</td>
                                <td class="text-center">{{stock.barCode}}</td>
                                <td class="text-center">{{stock.createTime}}</td>
                                <td class="text-center">{{stock.state=='1001'?'正常':'占用'}}</td>
                                <td class="text-center">{{stock.createUserName}}</td>
                                <td class="text-right">
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openDeleteProductStockModel(stock)">删除</button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="7">
                                    <ul class="pagination float-right"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
        <div class="col-lg-4">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>查询库存</h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">条形码</label>
                        <div class="col-sm-8">
                            <input v-model="productStockManageInfo.conditions.barCode" type="text"
                                placeholder="必填，请填写条形码" class="form-control" @keyup.enter="_queryProductMethod()">
                        </div>
                        <div class="col-sm-2">
                            <button class="btn btn-primary" type="button" v-on:click="_queryProductMethod()">查询</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="ibox">
                <div class="ibox-title">
                    <h5>入库信息</h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">条形码</label>
                        <div class="col-sm-10">
                            <input v-model="productStockManageInfo.barCode" id="enterBarCode" type="text"
                                placeholder="必填，请填写条形码" class="form-control" @keyup.enter="_enterProductStock()">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">商品</label>
                        <div class="col-sm-10">
                            {{productStockManageInfo.prodName}}
                        </div>
                    </div>
                    <div class="form-group row ">
                        <div class="col-sm-2"></div>
                        <div class="col-sm-8 text-center">
                            <button class="btn btn-warning btn-lg btn-block" type="button"
                                v-on:click="_enterProductStock()">入库</button>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <vc:create path="goods/deleteProductStock"></vc:create>

</div>